﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity.ModelConfiguration;

namespace EzyGoEzySystem.Models
{
    public class PaymentJournalEntryConfiguration : EntityTypeConfiguration<PaymentJournalEntry>
    {
        internal PaymentJournalEntryConfiguration()
        {
            this.HasRequired(entry => entry.Account)
                .WithMany(account => account.PaymentJournalEntries)
                .HasForeignKey(entry => entry.AccountID)
                .WillCascadeOnDelete(true);
        }
    }
}